
public class Leetcode1688 {
    public int numberOfMatches(int n) {
        return n - 1;
    }

    private static final int N = 9;

    public static void main(String[] args) {
        for (int i = 1; i <= N; i++) {
            for (int j = 1; j <= i; j++) {
                System.out.print(j + "*" + i  + "=" + (i * j) + (j != i ? " " : ""));
            }

            if (i != N) {
                System.out.println();
            }
        }
    }
}

